<table>
  <tbody>
    <tr>
      <th>Id:</th>
      <td><?php echo $shift->getId() ?></td>
    </tr>
    <tr>
      <th>Nombre:</th>
      <td><?php echo $shift->getName() ?></td>
    </tr>
    <tr>
      <th>Horas:</th>
      <td><?php echo $shift->getHours() ?></td>
    </tr>
  </tbody>
</table>
<table>
  <thead>
    <tr>
      <th>Día</th>
      <th>Jornada 1</th>
      <th>Jornada 2</th>
      <th>Jornada 3</th>
      <th>Horas</th>
      <th>Tipo</th>
    </tr>
  </thead>
  <tbody>
<?php foreach ($shift->getDays() as $day): ?>
<tr class="<?php echo $day->getRestDay() ? 'freeday' : 'workingday' ?>">
    <td><?php echo $day->getDayOfWeekName(); ?> </td>
    <td><?php echo $day->getShift1(); ?> </td>
    <td><?php echo $day->getShift2(); ?> </td>
    <td><?php echo $day->getShift3(); ?> </td>
    <td><?php echo $day->getHours(); ?> </td>
    <td><?php echo $day->getShiftClassification(); ?> </td>

</tr>


<?php endforeach; ?>
 </tbody>
</table>
<hr />

<a href="<?php echo url_for('shifts/edit?id='.$shift->getId()) ?>">Edit</a>
&nbsp;
<a href="<?php echo url_for('shifts/index') ?>">List</a>
